// 新建文件，可以去百度fs模块
const fs = require('fs');
const path = require('path');
module.exports = (dirname, callback) => {
  fs.exists(dirname, function(exists) {
    if (exists) {
      callback();
    } else {
      mkdirs(path.dirname(dirname), function() {
        fs.mkdir(dirname, callback);
      });
    }
  });
};
